package Array;

import java.util.Arrays;

public class Select1 {
    public static void main(String[] args) {
        int [] arr={1,4,2,100,42,88};
        for (int i = 1; i < arr.length-1; i++) {
            for (int j = i+1; j < arr.length; j++) {
                if(arr[i]>arr[j]){
                    int t=arr[j];
                    arr[j]=arr[i];
                    arr[i]=t;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
    }

